<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Success Page</title>
</head>
<body>
	
	<table border="1">
		<tr>
			<th>员工姓名</th>	
			<th>员工性别</th>	
			<th>员工年龄</th>	
			<th>所属部门</th>
			<th>所在职务</th>	
			<th>工龄</th>	
			<th>修改操作</th>	
			<th>删除操作</th>
		</tr>
		<c:forEach items="${list }" var="emps">
			<tr>
				<td>${emps.name }</td>
				<td>${emps.sex }</td>
				<td>${emps.age }</td>
				<td>${emps.dapartment }</td>
				<td>${emps.type }</td>
				<td>${emps.year }</td>
				<td><a href="toUpdateEmpById?id=${emps.id }">修改</a></td>
				<td><a href="delet?id=${emps.id }">删除</a></td>
			</tr>
		</c:forEach>
		<tr><td><a href="add.jsp">新增员工信息</a></td></tr>
	</table>
</body>
</html>